<?php
/**
 * @version                $Id: index.php 21518 2011-06-10 21:38:12Z chdemko $
 * @package                Joomla.Site
 * @subpackage	Templates.beez_20
 * @copyright        Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license                GNU General Public License version 2 or later; see LICENSE.txt
 */

// No direct access.
defined('_JEXEC') or die;

$user = JFactory::getUser();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
        <head>
                <jdoc:include type="head" />
                <script type="text/javascript" src="<?php echo $this->baseurl; ?>/templates/promotion/javascript/jquery-1.6.2.min.js"></script>
                <script type="text/javascript" src="<?php echo $this->baseurl; ?>/templates/promotion/javascript/jquery.bxSlider.min.js"></script>
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/promotion/css/position.css" type="text/css" media="screen,projection" />
                <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/promotion/css/style.css" type="text/css" media="screen,projection" />
        </head>

<body>
	<div id="div-abs"></div>
	<div class="container_24">
		<div>
			<div id="header" class="container_24">
				<div id="menu">
					<jdoc:include type="modules" name="top-menu" />
					<jdoc:include type="modules" name="top-location" />
					<?php if(!$user->id): ?>
					<jdoc:include type="modules" name="right-menu-links" />
					<?php else: ?>
					<jdoc:include type="modules" name="right-user-menu-links" />
					<div class="user-link">
						Xin chào <?php echo $user->name ? $user->name : $user->username; ?> 
						
						<form action="index.php?option=com_users" method="post" class="logout">
							<input type="hidden" name="task" value="user.logout" />
							<?php echo JHtml::_('form.token'); ?>
							<button type="submit">[ Thoát ]</button>
						</form>
					</div>
					
					<?php endif; ?>
				</div>
				
				<div id="middle">
					<a id="logo" href="<?php echo JURI::base(); ?>" title="bigsale.net.vn"></a>
					
					<jdoc:include type="modules" name="top-banner" />
					
					<div id="post">
						<a href="<?php echo JRoute::_('index.php?option=com_je_product&task=post.checkAdd');?>" class="btn-post-info"></a>
						
						<form id="frm-search" method="get" action="<?php echo JRoute::_('index.php?option=com_je_product&view=search'); ?>">
							<input type="text" name="q" value="<?php echo JRequest::getVar('q'); ?>" />							
							<button type="submit">Tìm</button>
						</form>
					</div>
					
				</div>
				
			</div>
			<div id="seperator"></div>
		</div>
		<div class="grid_5">
			<div id="left-menu-header" class="box-header">
				Danh mục khuyến mại
			</div>
			<jdoc:include type="modules" name="left-menu" />
			<jdoc:include type="modules" name="left-banner" />
		</div>
		<!-- end .grid_6 -->
		<div class="grid_19">
			<jdoc:include type="message" />
			<div id="breadcrumbs">
				<jdoc:include type="modules" name="position-2" />
			</div>
			<div>
				<div id="slideshow" class="grid_13">
					<jdoc:include type="modules" name="home-frontpage-banner" />
					<jdoc:include type="modules" name="home-frontpage-slideshow" />
				</div>
				<div id="latest-content" class="grid_6 last">
					<jdoc:include type="modules" name="home-latest-content" />
					<jdoc:include type="modules" name="je-support" />					
				</div>
				<div class="clear"></div>
			</div>
				
			<div id="main-content">
				<jdoc:include type="component" />
			</div>
		</div>
		<!-- end .grid_18 -->
		<div class="clear"></div>
		
		<div id="footer">
			<div id="copyright">
				<p>Copyright &copy; bigsale.net.vn - <?php echo date('Y'); ?></p>
				<p>Email: <a href="mailto:contact@bigsale.net.vn">contact@bigsale.net.vn</a>. Hotline: 0912.933.361</p>
			</div>
			
		</div>
	</div>
	<jdoc:include type="modules" name="debug" />
	
	<script type="text/javascript">

	  var _gaq = _gaq || [];
	  _gaq.push(['_setAccount', 'UA-26628866-1']);
	  _gaq.push(['_trackPageview']);
	
	  (function() {
	    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	  })();
	
	</script>
</body>
</html>
